package com.example.seckill.Config;

//import com.example.seckill.Interceptor.RoleInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;


//@Configuration
//public class RoleInterceptorConfig implements WebMvcConfigurer {
//    @Resource
//    private RoleInterceptor roleInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(roleInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/user/login","/**.jpg"); // 设置拦截的URL模式
//
//
//    }
//}
